/**
 *
 */
package com.freedom.study.model;

import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * 描述：用于封装es的请求类
 * 		用于封装文章
 * @author LiPan
 * @since 2017年11月17日下午2:10:00
 */
public class EsReq {

	// 作者
	private String author;
	// 文章标题
	private String article;
	// 文章分类
	private String type;
	// 文章摘要
	private String summary;
	// 文章内容
	private String context;
	// 文章创建时间
	@JSONField(serialize = false)
	private Date data = new Date();
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public String getArticle() {
		return article;
	}
	public void setArticle(String article) {
		this.article = article;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getSummary() {
		return summary;
	}
	public void setSummary(String summary) {
		this.summary = summary;
	}
	public String getContext() {
		return context;
	}
	public void setContext(String context) {
		this.context = context;
	}
	public Date getData() {
		return data;
	}
	public void setData(Date data) {
		this.data = data;
	}
	
}
